<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>注册页面</title>
    <link rel="stylesheet" href="../res/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="../res/css/main.css">
</head>

<style type="text/css">
    .container{
        width: 360px;
        height: 640px;
        min-height: 640px;
        max-height: 640px;
        position: absolute;
        top: 300px;
        left: 0;
        bottom: 0;
        right: 0;
        margin: auto;
        padding: 20px;
        z-index: 1300;
        border-radius: 8px;
        background-color: #fff;
        box-shadow: 0 3px 18px rgba(100, 0, 0, .8);
        font-size: 16px;
    }
    .close{
        background-color: white;
        border: none;
        font-size: 18px;
        margin-left: 410px;
        margin-top: -10px;
    }

    .layui-input{
        border-radius: 5px;
        width: 225px;
        height: 40px;
        font-size: 15px;
        margin-top: 6px;
    }
    .layui-form-item{
        margin-left: -20px;
    }
    #logoid{
        margin-top: -16px;
        padding-left:150px;
        padding-bottom: 15px;
    }
    .layui-btn{
        margin-left: -50px;
        border-radius: 5px;
        width: 350px;
        height: 40px;
        font-size: 15px;
    }
    .verity{
        width: 120px;
    }
    .font-set{
        font-size: 16px;
        text-decoration: none;
        margin-left: 165px;
    }
    a:hover{
        text-decoration: underline;
    }

</style>
<body>
<div class="header" style="margin-bottom: 40px">
    <div class="menu-btn">
        <div class="menu"></div>
    </div>
    <h1 class="logo">
        <a href="index.html">
            <span>MYBLOG</span>
            <img src="../res/img/logo.png" style="width: 120px;height: 80px">
        </a>
    </h1>
    <div class="nav">
        <a href="/toIndex.action">文章</a>
        <a href="/toMyBlog.action">我的博客</a>
        <a href="/toWrite.action">写博客</a>
        <a href="/toAlbum.action">相册</a>
        <a href="/toAbout.action">个人空间</a>
        <a href="/toAbout.action"></a>
        <a href="/toAbout.action"></a>
        <a href="/toAbout.action"></a>
        <a href="/toAbout.action"></a>
        <a href="/toAbout.action"></a>
        <a href="/toAbout.action"></a>
        <a href="/toAbout.action" style="color: forestgreen" th:if="${session.loginUser != null}" th:text="'欢迎您,'+${session.loginUser.name}"></a>
    </div>
    <ul class="layui-nav header-down-nav">
        <li class="layui-nav-item"><a href="/toIndex.action" >所有文章</a></li>
        <li class="layui-nav-item"><a href="/toMyBlog.action">我的博客</a></li>
        <li class="layui-nav-item"><a href="/toWrite.action">写博客</a></li>
        <li class="layui-nav-item"><a href="/toAlbum.action">相册</a></li>
        <li class="layui-nav-item"><a href="/toAbout.action">个人空间</a></li>
        <li class="layui-nav-item" th:if="${session.loginUser == null}"><a href="toLogin">登录</a></li>
        <li class="layui-nav-item" th:if="${session.loginUser != null}"><a href="toLogout">注销</a></li>
    </ul>
</div>
<div class="mybanner">
    <div class="cont w1000">
    </div>
</div>
<form class="layui-form" action="register.action" method="post">
    <div class="container">
        <div class="layui-form-text">
            <div th:if="${respon}!=null">
                <label class="layui-form-label" style="line-height:12px"><i class="layui-icon" style="font-size: 28px;color: orangered;" >&#xe702;</i></label>
                <p th:text="   ${respon}" style="font-size:20px ; color:orangered ;margin-top: 15px;margin-bottom: 20px;"></p>
            </div>
            <div th:if="${respon}==null">
                <label class="layui-form-label" style="line-height:12px"><i class="layui-icon" style="font-size: 28px;color: forestgreen;" >&#xe702;</i></label>
                <p th:text="   欢迎注册BingoBlog" style="font-size:20px ; color:forestgreen ;margin-top: 15px;margin-bottom: 20px;"></p>
            </div>

        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i class="layui-icon" style="font-size: 25px;color: forestgreen">&#xe66f;</i></label>
            <div class="layui-input-block">
                <input type="text" name="username" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <br>
        <div class="layui-form-item">
            <label class="layui-form-label" style="padding-top: 16px"><i class="layui-icon" style="font-size: 25px;color: forestgreen">&#xe673;</i></label>
            <div class="layui-input-inline">
                <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
            </div>
        </div>
        <br>
        <div class="layui-form-item">
            <label class="layui-form-label" style="padding-top: 16px"><i class="layui-icon" style="font-size: 25px;color: forestgreen">&#xe770;</i></label>
            <div class="layui-input-inline">
                <input type="text" name="name" placeholder="请输入昵称" autocomplete="off" class="layui-input">
            </div>
        </div>
        <br>
        <div class="layui-form-item">
            <label class="layui-form-label" style="padding-top: 16px"><i class="layui-icon" style="font-size: 25px;color: forestgreen">&#xe63b;</i></label>
            <div class="layui-input-inline">
                <input type="text" name="phoneNum" placeholder="请输入电话号码" autocomplete="off" class="layui-input">
            </div>
        </div>
        <br>
        <div class="layui-form-item">
            <label class="layui-form-label" style="padding-top: 16px"><i class="layui-icon" style="font-size: 25px;color: forestgreen">&#xe60b;</i></label>
            <div class="layui-input-inline">
                <input type="text" name="personMsg" placeholder="请输入个人简介" autocomplete="off" class="layui-input">
            </div>
        </div>
        <br>
        <div class="layui-form-item">
            <label class="layui-form-label" style="color: forestgreen;">Sex</label>
            <input type="radio" name="sex"  title="男" value="male">
            <input type="radio" name="sex"  title="女" value="female" checked>
        </div>
        <br>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" value="submit" onclick="register()" style="margin-left: -30%">注册</button>
            </div>
        </div>
        <br>
        <div class="layui-form-item">
            <a href="/toLogin" class="font-set" style="margin-left: 35%">已有账号,立即登录</a>
        </div>
    </div>
</form>
<script type="text/javascript" src="res/layui/layui.js"></script>
<script>
    layui.use(['form', 'layedit', 'laydate'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate;
    });
    layui.config({
        base: '../res/js/util/'
    }).use(['element','laypage','jquery','menu'],function(){
        element = layui.element,laypage = layui.laypage,$ = layui.$,menu = layui.menu;

        laypage.render({
            elem: 'demo'
            ,count: 70 //数据总数，从服务端得到
        });
        menu.init();
    })
    function register() {
        layui.use('layer', function(){
            var layer = layui.layer;
            layer.msg("注册信息已发送");
        });
    }
</script>
</body>
</html>